package com.io.controller;

import com.io.service.TreeService;
import com.io.vo.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * The class/interface
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
@RestController
public class TreeController {
    @Autowired
    private TreeService treeService;

    @GetMapping(value = "getTree")
    public ApiResult getTree(@RequestParam Integer parentId) {
        return ApiResult.ok(treeService.getAllWsAppList(parentId));
    }
}
